CVE-2024-32657
Hydra has persistent XSS vulnerability serving HTML build outputs
Description
Hydra is a Continuous Integration service for Nix based projects. Attackers can execute arbitrary code in the browser context of Hydra and execute authenticated HTTP requests. The abused feature allows Nix builds to specify files that Hydra serves to clients. One use of this functionality is serving NixOS `.iso` files. The issue is only with html files served by Hydra. The issue has been patched on https://hydra.nixos.org around 2024-04-21 14:30 UTC. The nixpkgs package were fixed in unstable and 23.11. Users with custom Hydra packages can apply the fix commit to their local installations. The vulnerability is only triggered when opening HTML build artifacts, so not opening them until the vulnerability is fixed works around the issue.
INFO
Published Date :
April 22, 2024, 11:15 p.m.
Last Modified :
Sept. 22, 2025, 2:10 p.m.
Remotely Exploit :
Yes !
Source :
[email protected]
CVSS Scores
Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
---|---|---|---|---|---|---|
CVSS 3.1 | MEDIUM | [email protected] | ||||
CVSS 3.1 | MEDIUM | [email protected] |
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2024-32657
.
URL | Resource |
---|---|
https://github.com/NixOS/hydra/commit/b72528be5074f3e62e9ae2c2ae8ef9c07a0b4dd3 | Patch |
https://github.com/NixOS/hydra/security/advisories/GHSA-2p75-6g9f-pqgx | Vendor Advisory |
https://github.com/NixOS/nixpkgs/pull/306017 | Issue Tracking |
https://github.com/NixOS/nixpkgs/pull/306018 | Issue Tracking |
https://github.com/NixOS/hydra/commit/b72528be5074f3e62e9ae2c2ae8ef9c07a0b4dd3 | Patch |
https://github.com/NixOS/hydra/security/advisories/GHSA-2p75-6g9f-pqgx | Vendor Advisory |
https://github.com/NixOS/nixpkgs/pull/306017 | Issue Tracking |
https://github.com/NixOS/nixpkgs/pull/306018 | Issue Tracking |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2024-32657
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2024-32657
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2024-32657
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2024-32657
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Sep. 22, 2025
Action Type Old Value New Value Added CVSS V3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N Added CPE Configuration OR *cpe:2.3:a:nixos:hydra:*:*:*:*:*:*:*:* versions up to (excluding) 23.11 Added Reference Type CVE: https://github.com/NixOS/hydra/commit/b72528be5074f3e62e9ae2c2ae8ef9c07a0b4dd3 Types: Patch Added Reference Type GitHub, Inc.: https://github.com/NixOS/hydra/commit/b72528be5074f3e62e9ae2c2ae8ef9c07a0b4dd3 Types: Patch Added Reference Type CVE: https://github.com/NixOS/hydra/security/advisories/GHSA-2p75-6g9f-pqgx Types: Vendor Advisory Added Reference Type GitHub, Inc.: https://github.com/NixOS/hydra/security/advisories/GHSA-2p75-6g9f-pqgx Types: Vendor Advisory Added Reference Type CVE: https://github.com/NixOS/nixpkgs/pull/306017 Types: Issue Tracking Added Reference Type GitHub, Inc.: https://github.com/NixOS/nixpkgs/pull/306017 Types: Issue Tracking Added Reference Type CVE: https://github.com/NixOS/nixpkgs/pull/306018 Types: Issue Tracking Added Reference Type GitHub, Inc.: https://github.com/NixOS/nixpkgs/pull/306018 Types: Issue Tracking -
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://github.com/NixOS/hydra/commit/b72528be5074f3e62e9ae2c2ae8ef9c07a0b4dd3 Added Reference https://github.com/NixOS/hydra/security/advisories/GHSA-2p75-6g9f-pqgx Added Reference https://github.com/NixOS/nixpkgs/pull/306017 Added Reference https://github.com/NixOS/nixpkgs/pull/306018 -
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
CVE Received by [email protected]
Apr. 22, 2024
Action Type Old Value New Value Added Description Hydra is a Continuous Integration service for Nix based projects. Attackers can execute arbitrary code in the browser context of Hydra and execute authenticated HTTP requests. The abused feature allows Nix builds to specify files that Hydra serves to clients. One use of this functionality is serving NixOS `.iso` files. The issue is only with html files served by Hydra. The issue has been patched on https://hydra.nixos.org around 2024-04-21 14:30 UTC. The nixpkgs package were fixed in unstable and 23.11. Users with custom Hydra packages can apply the fix commit to their local installations. The vulnerability is only triggered when opening HTML build artifacts, so not opening them until the vulnerability is fixed works around the issue. Added Reference GitHub, Inc. https://github.com/NixOS/hydra/security/advisories/GHSA-2p75-6g9f-pqgx [No types assigned] Added Reference GitHub, Inc. https://github.com/NixOS/nixpkgs/pull/306017 [No types assigned] Added Reference GitHub, Inc. https://github.com/NixOS/nixpkgs/pull/306018 [No types assigned] Added Reference GitHub, Inc. https://github.com/NixOS/hydra/commit/b72528be5074f3e62e9ae2c2ae8ef9c07a0b4dd3 [No types assigned] Added CWE GitHub, Inc. CWE-79 Added CVSS V3.1 GitHub, Inc. AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N